<%@ page import="com.hexu.event.entity.User" %>
<%@ page import="com.hexu.event.service.UserService" %>
<%@ page import="static com.hexu.event.util.ServiceUtil.userService" %>
<%@ page import="jakarta.servlet.http.HttpSession" %>
<%@ page import="java.util.List" %>
<%@ page import="com.hexu.event.entity.Reply" %>
<%@ page import="static com.hexu.event.util.ServiceUtil.replyService" %>
<%@ page import="com.hexu.event.entity.Consulting" %>
<%@ page import="static com.hexu.event.util.ServiceUtil.*" %><%--
  Created by IntelliJ IDEA.
  User: 86151
  Date: 2021/5/6
  Time: 21:40
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>用户咨询界面</title>
</head>
<body>
<table border="2">
    <%
        //获取服务工作者信息
        User user = userService.getUser(request.getParameter("account"));
        //调用请求对象，向tomcat索要当前用户在服务端私人储物柜
        HttpSession session1 = request.getSession();
        User user2 = (User) session.getAttribute("user");
        //获得回复
        List<Reply> replyList = replyService.getReply(user.getAccount(), user2.getAccount());
        //获得咨询
        List<Consulting> consultingList = consultingService.getConsulting(user2.getAccount(), user.getAccount());
    %>
    <tr>
        <td><%
          user.getUserName();
        %></td>
        <td>我</td>
        <td>时间</td>
    </tr>

</table>
</body>
</html>
